<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Index</h2>
    
    <% using (Html.BeginForm("Sum", "Calc", FormMethod.Post ))
       {%>
       A=<%= Html.TextBox("a", "3")%><br />
       B=<%= Html.TextBox("b", "6")%><br />
       
       <input type="submit" value="+" />                            
    <% } %> 
    <br />
    
    <% using (Html.BeginForm("Mul", "Calc", FormMethod.Post ))
       {%>
       A=<%= Html.TextBox("a", "5")%><br />
       B=<%= Html.TextBox("b", "7")%><br />
       
       <input type="submit" value="*" />                            
    <% } %> 

</asp:Content>
